/**
 * 
 */
package com.jrh.biz.user;

import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;

/**
 * @author shengli.caosl 2012-2-24 下午4:20:07
 */
public class UserDAO extends SqlSessionDaoSupport {

    private static final String NAMESPACE = UserModel.class.getName();

    public int createUser(UserModel userModel) {
        return getSqlSession().insert(NAMESPACE + ".createUser", userModel);
    }

    public UserModel getUserByNameAndOther(Map<String, Object> parameter) {
        return (UserModel) getSqlSession().selectOne(NAMESPACE + ".getUserByNameAndOther", parameter);
    }
}
